package com.zsummer.baikal.system.mapper;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zsummer.baikal.system.dto.SysUserDTO;
import com.zsummer.baikal.system.entity.SysUser;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsummer.baikal.system.vo.SysUserVO;
import org.apache.ibatis.annotations.Param;

/**
 * 用户表 Mapper 接口
 * @author zsummer
 * @since 2021-07-28
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUserVO> searchUser(Page page, @Param("query") SysUserDTO searchDTO);

    SysUser getUserVoById(Long id);
}
